package com.yonyou.cyxdms.basedata.service.entity.sap;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.Date;

/**
 * 价格主数据-基本价-CMS008-PO
 *
 * @author lyz
 * @date 2020/11/25
 */
@Data
@TableName(value = "ti_product_price_data")
public class CMS008PO {

    /** 主键 **/
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /** 发送方 **/
    @TableField(value = "sender")
    private String sender;

    /** 接收方 **/
    @TableField(value = "receiver")
    private String receiver;

    /** 发送时间 **/
    @TableField(value = "dtsend")
    private Date dtsend;

    /** 接口ID **/
    @TableField(value = "intfid")
    private String intfid;

    /** 消息ID **/
    @TableField(value = "msgid")
    private String msgid;

    /** 整车编码:18位整编 **/
    @TableField(value = "product_code")
    private String productCode;

    /** 车型编码:12位选装代码 **/
    @TableField(value = "model_code")
    private String modelCcode;

    /** 车型基本价:两位小数 **/
    @TableField(value = "basic_price")
    private String basicPrice;

    /** 内外饰代码:后6位代码 **/
    @TableField(value = "in_out_code")
    private String inOutCode;

    /** 内外饰基本价:两位小数 **/
    @TableField(value = "in_out_price")
    private String inOutPrice;

    /** 币别 **/
    @TableField(value = "currency")
    private String currency;

    /** 价格单位 **/
    @TableField(value = "price_unit")
    private String priceUnit;

    /** 有效起始日期 **/
    @TableField(value = "start_date")
    private Date startDate;

    /** 有效结束日期 **/
    @TableField(value = "end_date")
    private Date endDate;

    /** 预留字段1 **/
    @TableField(value = "back1")
    private String back1;

    /** 预留字段2 **/
    @TableField(value = "back2")
    private String back2;

    /** 预留字段3 **/
    @TableField(value = "back3")
    private String back3;

    /** 是否删除(0:未删除1:删除) **/
    @TableField(value = "is_deleted")
    @TableLogic
    private Integer isDeleted;

    /** RECORD_VERSION **/
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @Version
    private Integer recordVersion;

    /** CREATED_AT **/
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createdAt;

    /** UPDATED_AT **/
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updatedAt;

}